package com.yzd.learnjava.control;

public class IfElse2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println(test(10, 5));
		System.out.println(test(5, 10));
		System.out.println(test(5, 5));
	}
	static int test(int testVal, int target){
		if(testVal < target){
			return -1 ;
		} else if(testVal > target){
			return 1 ;
		} else {
			return 0;
		}
	}
}
